Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(backend): incorrect pagination when no data #1499

Merged
merged 1 commit into from
Nov 7, 2024
Merged

fix(backend): incorrect pagination when no data #1499

merged 1 commit into from
Nov 7, 2024

Conversation

detj
Copy link
Contributor

@detj detj commented Nov 7, 2024

Summary

Fix an edge condition where previous would be set incorrectly to false when there are no results.

See also

- fix an edge condition where sessions overview api would set `previous`
value of pagination meta incorrectly to `true` when there are no
results.

fixes #1497

Signed-off-by: detj <[email protected]>
@detj detj added bug something isn't working backend backend related labels Nov 7, 2024
@detj detj self-assigned this Nov 7, 2024
Copy link

vercel bot commented Nov 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
measure-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2024 5:17am

@detj detj requested a review from anupcowkur November 7, 2024 06:09
@detj detj merged commit 389d22a into main Nov 7, 2024
8 checks passed
@detj detj deleted the fix-pagiation branch November 7, 2024 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend backend related bug something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

"previous" should be false with offset 0 in '/sessions' API
2 participants